#include "BuilderUser.h"

BuilderUser::BuilderUser() : Builder(){
    //ctor
}

Controller * BuilderUser::criar() const{
    InterfaceUser * interface = new InterfaceUser("Usuario","\t0-sair\n\t1-alterar nome\n\t2-alterar senha\n\t3-alterar endereco\n\t4-apagar conta do sistema");
    cmd_user * cmd = new cmd_user();
    Controller * cntr = new ControllerUser(interface,cmd);

    return cntr;
}

BuilderAuth::BuilderAuth() : Builder(){
    //ctor
}

Controller * BuilderAuth::criar() const{
    InterfaceAuth * interface = new InterfaceAuth("Autenticacao","\t0-sair\n\t1-fazer login\n\t2-cadastrar");
    cmd_auth * cmd = new cmd_auth();
    Controller * cntr = new ControllerAuth(interface,cmd);

    return cntr;
}
